<?php
/*
Template Name: Sample Template
*/
?>
<?php
/*!
 * Theme Name:One Nav
 * Theme URI:https://www.iotheme.cn/
 * Author:iowen
 * Author URI:https://www.iowen.cn/
 */
if ( ! defined( 'ABSPATH' ) ) { exit; }
get_header(); ?>


<?php include( get_theme_file_path('/templates/sidebar-nav.php') );?>

<div class="main-content flex-fill">
<?php get_template_part( 'templates/header','banner' ); ?>

<style>.hot-card .hot-body {
    height: 400px !important;
}</style>
<div style="z-index:2">
    	<div class="row">
    	    <div class="col-lg-12">
                <h1 class="text-center" style="">
                    <i class="iconfont icon-globe icon-lg mr-1" style="color:red"></i>互联热榜信息
                </h1>
            </div>
        </div>
<?php 
if( $hotlist= io_get_option('hot_list_id2') ){
if(!empty($hotlist['enabled'])){
    echo '<div class="overflow-x-auto mb-3" style="margin:0 -.5rem;padding:0 .5rem"><div class="row row-sm hot-search">';
    
    $list_int=0;
    hot_search('weibo_topsearch');
    hot_search('baidu_topsearch');
    hot_search('smzdm_select');
     echo '</div></div>';
    
     echo '<div class="overflow-x-auto mb-3" style="margin:0 -.5rem;padding:0 .5rem"><div class="row row-sm hot-search">';
    hot_search('bilibili_topsearch');
    hot_search('weread_topsearch');
    hot_search('douban_topsearch');
     echo '</div></div>';
     
        echo '<div class="overflow-x-auto mb-3" style="margin:0 -.5rem;padding:0 .5rem"><div class="row row-sm hot-search">';
    hot_search('52pojie_topsearch');
    hot_search('36kr_topsearch');
    hot_search('sspai_topsearch');
 
    
	if($list_int>0) echo '<style>@media screen and (max-width: 1199.98px){.hot-search {min-width: '.(300*($list_int)).'px;}}</style>';
    echo '</div></div>';
}
}
 ?>
</div> 
<?php get_footer(); ?>

    </div> 
 
 